import {LOGIN,LOGOUT,CHANGETOPATH,HEALTHDETAILS,MAINTITLE,PERSONALINFO,ACTIVENAME,TYPE,WS99_00_924_01,TYPECODE,MENUINDEX,PROGRESS,UPLOADITEM,COMMONCODEPROVINCE} from './mutation-types.js'
export default {
    [LOGIN](state) {
        state.logined =true;
    },
    [LOGOUT](state) {
        state.logined =false;
    },
    [CHANGETOPATH](state,Path){
        state.toPath =Path
    },
    [HEALTHDETAILS](state,healthDetails){
        state.healthDetails = healthDetails;
    },
    [MAINTITLE](state,mainTitle){
        state.mainTitle = mainTitle;
    },
    [PERSONALINFO](state,personalInfo){
        state.personalInfo = personalInfo;
    },
    [ACTIVENAME](state,activeName){
        state.activeName = activeName;
    },
    [TYPE](state,type){
        state.type = type;
    },
    [WS99_00_924_01](state,ws99_00_924_01){
        state.ws99_00_924_01 = ws99_00_924_01;
    },
    [TYPECODE](state,typeCode){
        state.typeCode = typeCode;
    },
    [MENUINDEX](state,menuIndex){
        state.menuIndex = menuIndex;
    },
    [PROGRESS](state,progress){
        state.progress = progress;
    },
    [UPLOADITEM](state,uploadItem){
        state.uploadItem = uploadItem;
    },
    [COMMONCODEPROVINCE](state,commonCodeProvince){
        for(let i=0;i<commonCodeProvince.length;i++){
            state.commonCodeProvince.push(commonCodeProvince[i])
        }
    }
}